<template>
	<div class="app-container fullScence">
  	<el-tree v-loading = 'loading' :data="list" :props="rule" ></el-tree>
  </div>
</template>
<script>
import {getList } from '@/api/systemManage'

export default {
  data(){
      return{
			// list: [{
			// name: '米源饮料',
			// children:[]
			// }],
			list:[],
			rule:{label:'name',children:'children'},
			loading:false
	  }
	  
	},
	methods:{
		getInfo() {
			const data={}
			this.loading = true
			getList(data).then(res=>{
				if(res.data.code === 0){
					this.list = res.data.data
					this.loading = false
				} else {
					this.loading = false
					this.$mess.error("服务异常")
				}
			})
		}
	},
	created() {
		this.getInfo()
	}
}
</script>
<style rel="stylesheet/scss" lang="scss">
	 @import "src/styles/mixin.scss";
	 .fullScence{
		 height: 90vh;
	 }
</style>